﻿using CL.Business.Entity;
using CL.Dapper.Repository;
using System.Data;
using CL.Enum.Common;

namespace CL.Business.DAL
{
    public class RecordDAL : DataRepositoryBase<RecordEntity>
    {
        public RecordDAL(DbConnectionEnum conenum, IDbConnection Db = null) : base(conenum, Db)
        {
        }
        /// <summary>
        /// 插入记录
        /// </summary>
        /// <param name="Entity"></param>
        /// <returns></returns>
        public int InsertEntity(RecordEntity Entity)
        {
            return base.Insert(Entity) ?? 0;
        }
    }
}
